/**
 * function runs if body loads
 * loads first the home site
 */
function bodyDoOnload(){
	loadDiv('./website/home/home' + langCode + '.html', null, 'content');
}


/**
 * loads the gallery
 * @param 		int		galleryId
 */
function loadGallery(galleryId){
	var params = {'T':'GALLERY', 'GALLERY_ID':galleryId};
	params = getEncodedParams(params);
	loadDiv('./website/gallery/gallery.php', params, 'content', imageFadeIn);
}


function imageFadeIn(){
	$('#content * img').load(function(){
		$(this).fadeIn(1000);
	});
}